package com.fc.im.netty.exception;

/**
 * Created by ChanJiabo on 2017/1/17.
 */
public class HeaderCheckFailedException extends RuntimeException {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private int defaultLevel = 1;

    public HeaderCheckFailedException() {
        super();
    }

    public HeaderCheckFailedException(Throwable e) {
        super(e);
    }

    public HeaderCheckFailedException(String msg) {
        super(msg);
    }

    public HeaderCheckFailedException(String msg, Throwable e) {
        super(msg, e);
    }

    public HeaderCheckFailedException(String msg, Throwable e, int level) {
        super(msg, e);
        this.defaultLevel = level;
    }

    public int getDefaultLevel() {
        return defaultLevel;
    }

    public void setDefaultLevel(int defaultLevel) {
        this.defaultLevel = defaultLevel;
    }

}
